MUIGDIPlusPaintFrame, pGraphics:GPGRAPHICS<GPGRAPHICS>
, lpFrameGdipRect:LPGPRECT<LPGPRECT>
, FrameColor:MUICOLORARGB<MUICOLORARGB>
, FrameStyle:MUIPFS<MUIPFS>
Draws a border (or parts of) around a rectangle, as specified by the lpFrameRect parameter which points to a GDIPRECT
, with FrameColor which is a specific ARGB color, to a graphics context as specified by pGraphics. Note: a RECT
can be converted to the GDIPRECT<GDIPRECT>
using the MUIGDIPlusRectToGdipRect<MUIGDIPlusRectToGdipRect>
function.
Parameters
- [in] pGraphics - graphics context to paint the frame to
- [in] lpFrameRect - points to a
GDIPRECT
that defines area to paint the frame - [in] FrameColor - ARGB color to paint the frame edges
- [in] FrameStyle - indicates what parts of the frame are painted. FrameStyle can be a combination of the following flags:
MUIPFS_NONE
,MUIPFS_LEFT
,MUIPFS_TOP
,MUIPFS_BOTTOM
,MUIPFS_RIGHT
orMUIPFS_ALL
Return
None
Example
GDIPRECT STRUCT
left REAL4 ?
top REAL4 ?
right REAL4 ?
bottom REAL4 ?
GDIPRECT ENDS
LOCAL hdc:HDC
LOCAL pGraphics:DWORD
LOCAL rect:RECT
LOCAL gdiprect:GDIPRECT
LOCAL BorderColor:DWORD
Invoke BeginPaint, hWin, Addr ps
mov hdc, eax
mov pGraphics, 0
Invoke GdipCreateFromHDC, hdc, Addr pGraphics
Invoke GetClientRect, hWin, Addr rect
Invoke MUIGDIPlusRectToGdipRect, Addr rect, Addr gdiprect
mov BorderColor, MUI_ARGBCOLOR(255, 48, 48, 48)
Invoke MUIGDIPlusPaintFrame, pGraphics, Addr gdiprect, BorderColor, MUIPFS_ALL
See Also
MUIGDIPlusPaintFrameI<MUIGDIPlusPaintFrameI>
, MUIGDIPlusPaintFill<MUIGDIPlusPaintFill>
, MUIGDIPlusPaintFillI<MUIGDIPlusPaintFillI>
, MUI_ARGBCOLOR<MUI_ARGBCOLOR>
, MUIGDIPlusRectToGdipRect<MUIGDIPlusRectToGdipRect>
, GDIPRECT<GDIPRECT>